package com.testwa.distest.server.web.task.vo.echart;import lombok.Data;import java.util.ArrayList;import java.util.List;/** * @Program: distest * @Description: 符合echart饼图的数据结构 * { *           legend: ['0.95s-2.1s', '2.1s-3.05s', '3.05s-4.2s', '4.2s-5.03s', '5.03s-6.12s'], *           data: [ *             {name: '0.95s-2.1s', value: 1}, *             {name: '2.1s-3.05s', value: 2}, *             {name: '3.05s-4.2s', value: 1}, *             {name: '4.2s-5.03s', value: 3}, *             {name: '5.03s-6.12s', value: 1} *           ] * } * * @Author: wen * @Create: 2018-05-24 12:23 **/@Datapublic class EchartPie {    private List<String> legend = new ArrayList<>();    private List<EchartPiePoint> data = new ArrayList<>();    public void addPoint(EchartPiePoint point) {        legend.add(point.getName());        data.add(point);    }}